package com.burns.flash.javafx.scene;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2022/02/22 9:49
 */

import javafx.application.Application;
import javafx.scene.Cursor;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

import java.util.Set;

public class SceneTest1 extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
//        Create Scene
//        VBox vBox  = new VBox();
//        Scene scene = new Scene(vBox);

//        Set Scene on Stage
        Label label = new Label("A JavaFX Label");
        Label label1 = new Label("A JavaFX Label1");
//        VBox vBox = new VBox(label,label);//Children: duplicate children added: parent = VBox@9cf02cf

        VBox vBox = new VBox(label,label1);
        Scene scene = new Scene(vBox);
//        Cursor.OPEN_HAND
//        Cursor.CLOSED_HAND
//        Cursor.CROSSHAIR
//        Cursor.DEFAULT
//        Cursor.HAND
//        Cursor.WAIT
//        Cursor.H_RESIZE
//        Cursor.V_RESIZE
//        Cursor.MOVE
//        Cursor.TEXT
        scene.setCursor(Cursor.DEFAULT);

//        Stage stage = new Stage();
//        stage.setScene(scene);
        primaryStage.setWidth(600);
        primaryStage.setHeight(300);
        primaryStage.setScene(scene);
        primaryStage.show();
//        stage.showAndWait();
    }

}
